module Viglink
  class Client
    attr_accessor *Viglink.configuration.rules.keys

    def initialize(args = {})
      config = Viglink.configuration.current.merge(args)

      Viglink.configuration.rules.keys.each do |key|
        self.send "#{key}=", config[key]
      end
    end
  end
end
